class UserInput

  attr_reader :text #String
  attr_reader :text_new?

  attr_reader :tag #ProductTag
  attr_reader :suggestions #Array[String]

  def initialize text = nil, tag = []
    @text, @tag = text, tag
  end

  def continuation? text
    @text && text.start_with?(@text)
  end

  def suggestions
    if tag

    end


  end
end

#
# @param oldInput [UserInput]
# @param newText {String}
#
def suggestions (oldInput, newText)
  newInput = UserInput.new(newText, oldInput.continuation?(newText) ? oldInput.tags : [])


end
#conversation = UserConveration.getCurrenct()

def qwe text
  tags = findTags(text)
  suggestions = SearhEngine.search(text)
end


